#a = n
#n <= 3
#while a > 0:
 #   a = a - 1
#if a = 0,1,2:
   # print(登录成功！)
#else:
    #print(3次用户名或者密码均有误！退出程序。)
for i in range(3):
    n = input("用户名：")
    p = input("密码：")
    if n =='kate' and p =='666666':
        print("登陆成功")
    elif i == 2:
        print("3次用户名或者密码均有误！退出程序。")

 